package com.dm.cloud.file.common.model.file;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description ="文件详情")
public class FileModel {

    @Schema(description = "文件名")
    private String fileName;
    @Schema(description = "文件路径")
    private String filePath;
    @Schema(description = "文件父级路径")
    private String parent;
    @Schema(description = "文件大小")
    private Long fileSize=0L;
    @Schema(description = "文件类型")
    private FileType fileType;
    @Schema(description = "文件后缀")
    private String suffix;
    @Schema(description = "修改时间")
    private Long lastModified;
    /**
     * 文件类型枚举
     */
    public static enum FileType{

        FILE, //文件
        DIR  //目录
    }


}
